package com.xyoto.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * ClassName:
 * Author:      挽风
 * Date:        2020
 * Copyright:   2020 by 挽风1.0版本
 * Description:
 **/
@Data
@ApiModel("修改动态DTO")
public class UpdateDynamicDTO {

    @ApiModelProperty(value = "动态id", name = "id", required = true)
    @NotNull(message = "动态id不能为空")
    @Min(value = 1, message = "动态id必须大于0")
    private Integer id;

    @ApiModelProperty(value = "话题id", name = "topicId")
    private Integer topicId;

    @ApiModelProperty(value = "发布动态的位置", name = "dynamicPlace")
    private String dynamicPlace;

    @ApiModelProperty(value = "动态内容", name = "content", required = true)
    @NotBlank(message = "动态内容不能为空")
    private String content;

    @ApiModelProperty("图片组group")
    private String group;
}

